﻿using System;
using PacMan3D.Utils;
using PacMan3D.Windows;
using PacMan3D.IO;
using System.Reflection;
using System.IO;
using System.Windows.Forms;
using PacMan3D.Sounds;
using Tao.DevIl;
using PacMan3D.Physics;
using System.Threading;
using System.Collections.Generic;
using System.Resources;

namespace PacMan3D
{
    public class Program
    {
        /// <summary>
        /// This method starts the program.
        /// </summary>
        /// <param name="args"></param>
        [STAThread]
        public static void Main(string[] args)
        {
            try
            {
                SoundController.Instance().Initialize();

                Window window = Window.Instance();

                window.StartRendering(Mode.Menu);
            }
            catch (Exception ex)
            {
                MessageBox.Show("Sorry, your computer are not well configured for run this game!\n\nException:" + ex.Message + "\n", "PacMac 3D", MessageBoxButtons.OK, MessageBoxIcon.Error);
                Environment.Exit(0);
            }
        }
    }
}
